package main;

import java.util.ArrayList;
import java.util.List;

public class Topic {

	private String id;
	
	private String sentence; 

	private int index;

	private List fullTerms = new ArrayList();

	private int fullTermsCount;

	private List output = new ArrayList();

	private List input = new ArrayList();

	private List passages = new ArrayList();

	private List sortedPassages = new ArrayList();

	private int totalCount;

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	/**
	 * @return the index
	 */
	public int getIndex() {
		return index;
	}

	/**
	 * @param index
	 *            the index to set
	 */
	public void setIndex(int index) {
		this.index = index;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the passages
	 */
	public List getPassages() {
		return passages;
	}

	/**
	 * @param passages
	 *            the passages to set
	 */
	public void setPassages(List passages) {
		this.passages = passages;
	}

	public void addPassage(Passage p) {
		passages.add(p);
	}

	/**
	 * @return the sortedPassages
	 */
	public List getSortedPassages() {
		return sortedPassages;
	}

	/**
	 * @param sortedPassages
	 *            the sortedPassages to set
	 */
	public void setSortedPassages(List sortedPassages) {
		this.sortedPassages = sortedPassages;
	}

	public void addSortedPassage(Passage p) {
		sortedPassages.add(p);
	}

	public int compareTo(Object o) {
		Topic topic = (Topic) o;
		return this.getId().compareTo(topic.getId());
	}

	public List getFullTerms() {
		return fullTerms;
	}

	public void setFullTerms(List fullTerms) {
		this.fullTerms = fullTerms;
	}

	public int getFullTermsCount() {
		return fullTermsCount;
	}

	public void setFullTermsCount(int fullTermsCount) {
		this.fullTermsCount = fullTermsCount;
	}

	public List getOutput() {
		return output;
	}

	public void setOutput(List output) {
		this.output = output;
	}

	public List getInput() {
		return input;
	}

	public void setInput(List input) {
		this.input = input;
	}

	public void addInput(Object p) {
		this.input.add(p);
	}

	public String getSentence() {
		return sentence;
	}

	public void setSentence(String sentence) {
		this.sentence = sentence;
	}

}
